

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
	榆林科技馆内容页
</title><link rel="stylesheet" type="text/css" href="../css/reset.css" /><link rel="stylesheet" type="text/css" href="../css/main.css" />
    <script type="text/javascript" src="..js/adddate.js"></script>
    <script type="text/javaScript" src="../js/vue2.min.js"></script>
    <script type="text/javaScript" src="../js/axios.min.js"></script>
    <script type="text/javaScript" src="../js/vue2.min.js"></script>
    <script type="text/javaScript" src="../js/axios.min.js"></script>
</head>
<body>
    <form name="form1" method="post" action="/user?action=update" id="form1">
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
    theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>


<div>

	<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="6B0D22E4" />
	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEdABHmQLLdB9eQIZdYHnkaBc4s8Ds3b6Y15Lq8RAGwZ2CUHUAB4aOpml0FhQEGvmNYWtgsKBl6FFSWw4rQ6dmj0iLUEVg+vAWWaU+KXrY24yLVwbgRYFAlHDpWF84hqfyffe0UqY+EdVbcAiSYpPtCLgnm198AXLacbDNAlVjYmNu4KLH9sG0OakpKoKqzQ4e1vUngBjk0MFM+ahxhxJKvZ66Oc6ejGUf4jmXWWWd+yElG8jLO3awqjhzobdBwfE26FxoQXty8MMWdrGY/1ugMCNCB6Ax7CDalcdd5J5hctA7gZxIMFluPmS1XnjVrmew7FdvN+DvxnwFeFeJ9MIBWR693MI14W7/wgUr52WRFnWK3l1s/npKCsoxHDGdZNpcjxmfhEx0+q3MUuIbpNibjUXXK" />
</div>
     <!--条件检索-->
    <div class="main_box">
        <div class="side_here">
            <p>
                <a href="#" title="首页"></a>当前位置 > <span>系统设置</span> > <span>
                    系统用户</span></p>
        </div>
    <div id ="userUp">

        <!--公用位置导航结束-->
        <div class="cont_box">
            <p class="title_bt">
                系统用户修改</p>
            <div class="biaodan_list">
                <table class="table_biaodan" border="0" cellspacing="0" cellpadding="0">
                    <tbody>
                        <tr>

                            <td class="biaodan_name">
<!--                                可以根据usID修改用户名-->
                                <input type="hidden" name="usID" :value="userInfo.userID" />
                                <i>*</i>用户名：
                            </td>
                            <td class="biaodan_enter">
                                <input name="txtA_user" type="text" :value="userInfo.userName" id="txtA_user" class="input" />
                            </td>
                        </tr>
                        <tr>
                            <td class="biaodan_name">
                                所属角色选择
                            </td>
                            <td class="biaodan_enter">
                                <select name="ddlA_type" :value="userInfo.roleType" onchange="javascript:setTimeout(&#39;__doPostBack(\&#39;ddlA_type\&#39;,\&#39;\&#39;)&#39;, 0)" id="ddlA_type">
	<option value="2">--请选择---</option>
	<option selected="selected" value="0"> 大后台管理员</option>
	<option value="1">人工出票管理员</option>

</select>
                            </td>
                        </tr>
                        <tr>
                            <td class="biaodan_name">
                                <i>*</i>密码：
                            </td>
                            <td class="biaodan_enter">
                                <input name="txtA_pass" type="password" :value="userInfo.password" maxlength="6" id="txtA_pass" class="input" />
                            </td>
                        </tr>
                        <tr>
                            <td class="biaodan_name">
                                确认密码：
                            </td>
                            <td class="biaodan_enter">
                                <input name="txtA_pws" type="password" :value="userInfo.password" maxlength="6" id="txtA_pws" class="input" />
                            </td>
                        </tr>
                        <tr>
                            <td class="biaodan_name">
                                姓名：
                            </td>
                            <td class="biaodan_enter">
                                <input name="txtA_name" type="text"  :value="userInfo.realName" id="txtA_name" class="input" onbeforepaste="clipboardData.setData(&#39;text&#39;,clipboardData.getData(&#39;text&#39;).replace(/[\d]/g,&#39;&#39;))" />
                            </td>
                        </tr>
                        <tr id="Hidd" style="display:block;">
	<td class="biaodan_name">
                                所属角色：
                            </td>
	<td class="biaodan_enter">
                                <select name="ddlA_post" id="ddlA_post">
		                          <option selected="selected" value="0">请选择</option>
		                            <option v-for="r in roles" :value="r.roleID">{{r.roleName}}</option>


	                              </select>
                            </td>
</tr>

                        <tr align="center">
                            <td class="anniu1" style="width: 200px; height: 50px; display: block; margin-left: 350px;">
                                <input type="submit" name="add" value="保存" id="add" class="btn btn-secondary radius" />
                                <input type="submit" name="Button1" value="重置" id="Button1" class="btn btn-default radius" />
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <!--表单提交结束-->
          
        </div>
     </div>
    </div>
    </form>
<script type="text/javascript">
    var userup = new Vue({
        el:'#userUp',
        data:{
            userInfo:{
                'userID':1,
                'userName':'adminx',
                'password':'1234567',
                'realName':'zhangsan',
                'roleID': 1,
                'roleType':'电影票售票员'
            },
            roles:[
                {'roleID':1,'roleName':'超级管理员','roleDesc':'','createTime':'' },
                {'roleID':2,'roleName':'电影管理员','roleDesc':'','createTime':'' },
               ]
        }
    });
    window.onload= init;
    function init(){
        var url ="/user?action=findUserByName";
        axios.get(url)
            .then(res=>{
                userup.userInfo = res.data.info;
                userup.roles = res.data.roles;
            })
    }
</script>
</body>
</html>
